﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BLL.BussinessInterface;
using DAL;
using Model;

namespace BLL.BussinessClass
{
    public class RestaurantBiz : IRestaurantBiz
    {
        public List<RESTAURANT> GetRestaurantInfo()
        {
            RestaurantRepository repo = RestaurantRepository.Instrances;
            return repo.LoadRestaurantXML();

        }
        public List<MENU> LoadMenuXML(string restaurantName)
        {
            if (string.IsNullOrEmpty(restaurantName))
            {
                return new List<MENU>();
            }
            RestaurantRepository repo = RestaurantRepository.Instrances;
            return repo.LoadMenuXML(restaurantName);
        }
    }
}
